﻿@model VideoCache.Server.Model.RoleInfo

@{
    ViewBag.Title = "新建角色";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<h2 class="pageTitle">@ViewBag.Title</h2>
<div class="ten-form wrap">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@ViewBag.Title</legend>

        <dl>
            <dt>角色名称</dt>
            <dd>
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </dd>
        </dl>

        <dl>
            <dt>显示名称</dt>
            <dd>
                @Html.EditorFor(model => model.DisplayName)
                @Html.ValidationMessageFor(model => model.DisplayName)
            </dd>
        </dl>
        <p>
            <input type="submit" value="保存" />
            @Html.ActionLink("返回", "Index")
        </p>
    </fieldset>
}
</div>